<span class="address"><?php
$address = pc_variable("value");
pc_echo($address->get("line1"));
?><br/>
<?php 
    if($address->get("line2") !== null) { 
        pc_echo($address->get("line2")); ?><br/>
<?php 
    }
    pc_echo($address->get("postalCode") . " " . $address->get("city"));
?></span>